package com.sands.app;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;

import static com.tencent.bugly.beta.tinker.TinkerManager.getApplication;

/**
 * Created by Administrator on 2017/6/14.
 */

public class App extends Application{

    static  App app;
    @Override
    public void onCreate() {
        super.onCreate();
        // 这里实现SDK初始化，appId替换成你的在Bugly平台申请的appId
        // 调试时，将第三个参数改为true
        Bugly.init(getApplication(), "3646204786", true);
        this.app=this;
        com.blankj.utilcode.util.Utils.init(this);
     }

    public static App getInstance() {
        return app;
    }
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        // you must install multiDex whatever tinker is installed!
        MultiDex.install(base);
        // 安装tinker
        Beta.installTinker();
    }


}
